﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;

namespace WaiGaoQiaoWeb.Models
{
    public class  StockVM
    {
        /// <summary>
        /// ID
        /// </summary>
        [DisplayName("ID")]
        public int ID { get; set; }
        /// <summary>
        /// 入库日期
        /// </summary>
          [DisplayName("入库日期")]
        [Required(ErrorMessage="入库日期不能为空")]
        public string StorageDt1 { get; set; }
      
        /// <summary>
        /// 劳保物品id
        /// </summary>
        [DisplayName("物资名称")]
       [Range(1,1000000,ErrorMessage="请选择物资")]
        public int Article_ID { get; set; }

        /// <summary>
        /// 劳保物品规格
        /// </summary>
       [DisplayName("规格/型号")]
        public string Article_Unit { get; set; }
        /// <summary>
        /// 劳保物品颜色
        /// </summary>
       [DisplayName("物资颜色")]
        public string Article_Color { get; set; }
       /// <summary>
       /// 劳保物品编号
       /// </summary>
       [DisplayName("物资编号")]
       public string Article_No { get; set; }
        /// <summary>
        /// 供应商
        /// </summary>
        [DisplayName("供应商")]
        public string Supplier { get; set; }
        /// <summary>
        /// 数量
        /// </summary>
       [RegularExpression(@"^[1-9]+(.[0-9]{0,3})?$", ErrorMessage = "数量必须为正整数或小数")] 
       [DisplayName("数量")]
        [Required(ErrorMessage="入库数量不能为空")]
        public int Count { get; set; }
        /// <summary>
        /// 操作人
        /// </summary>
        [DisplayName("操作人")]
        public string OperatorID { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
       [DisplayName("备注")] 
        public string Remark { get; set; }
        /// <summary>
        /// 记录日期
        /// </summary>
        public DateTime RecordDateTime { get; set; }
        /// <summary>
        /// 订单编号
        /// </summary>
        public string OrderNo { get; set; }
    }
}